package com.atmilan.quartz.model.dto.guanjp;

import java.math.BigDecimal;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

/**
 * 管家婆商品映射
 * @author daigb
 * @date:  2022-12-15 10:54
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GuanjpProductResDTO {
    /**
     * 请求id
     */
    @JsonProperty(value = "requestid")
    private String requestid;
    
    /**
     * 状态
     */
    @JsonProperty(value = "iserror")
    private Boolean iserror;
    
    /**
     * result结果集
     */
    @JsonProperty(value = "response")
    private Response response;
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Response {
        
        @JsonProperty(value = "ptypes")
        private List<Ptype> ptypes;
        
        /**
         * 总条数
         */
        @JsonProperty(value = "totalresults")
        private Integer totalresults;
        
    }
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Ptype {
        
    	@JsonProperty(value = "id")
        private String goodsId;

    	@JsonProperty(value = "usercode")
        private String usercode;

    	@JsonProperty(value = "barcode")
        private String barcode;

    	@JsonProperty(value = "fullname")
        private String fullname;

    	@JsonProperty(value = "standard")
        private String standard;

    	@JsonProperty(value = "price")
        private BigDecimal price;
    	
    }
    
}
